home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / plain / contrib / vertex / ppt.sty < prev    next >
Encoding:
Text File  |  1991-05-22  |  5.6 KB  |  182 lines

  1. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  2. %
  3. %      This is the ppt.sty (Preprint style) for VerTeX
  4. %
  5. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  6.  
  7. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  8. %      Special fonts
  9. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  10.  
  11. \font\twelveHelv=cmss10 at 12pt
  12. \font\fourteenHelvB=cmss10 at 14pt
  13.  
  14. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  15. %      Pagesize
  16. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  17.  
  18. \hsize=6.5 true in
  19. \vsize=8.9 true in
  20.  
  21. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  22. %      Headline and footline
  23. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  24.  
  25. %%%%None in this style
  26.  
  27. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  28. %      Topmatter style
  29. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  30.  
  31. \newbox\covertitlebox
  32. \newbox\coverauthorbox
  33.  
  34. \def\DoCoverTitle#1{\titlepage\global
  35.    \CenterBox
  36.      \covertitlebox
  37.      \fourteenHelvB
  38.      {16pt}
  39.      {#1}}
  40.  
  41. \def\DoCoverAuthor#1{
  42.      \CenterBox
  43.      \coverauthorbox
  44.      \twelveHelv
  45.      {14pt}
  46.      {#1}}
  47.  
  48. \def\TitleFont{\tenpoint\bf}
  49. \def\AuthorFont{\tenpoint\rm}
  50.  
  51. \def\title#1{\DoCoverTitle{#1}\DoCenteredTitle{#1}}
  52.  
  53. \def\author#1{\DoCoverAuthor{#1}\DoCenteredAuthor{#1}}
  54.  
  55. \def\affil#1{\global\setbox\affilbox
  56.      \vbox{\halign{\tenpoint\it\hfil##\hfil\cr#1\crcr}}}
  57.  
  58. \def\thanks#1{\global\setbox\thanksbox\hbox{\eightpoint #1}}
  59.  
  60. \def\date#1{\global\setbox\datebox\vbox{\hfil\tenrm #1 \hfil}}
  61.  
  62. \def\version#1{\global\setbox\versionbox\vbox{\hfil\tenrm Current version: #1 \hfil}}
  63.  
  64. \long\def\abstract#1{\global\setbox\abstractbox\hbox{\noindent{\bf Abstract. }\tenpoint#1}}
  65.  
  66. \def\keywords#1{\global\setbox\keywordsbox\hbox{\noindent{\bf Keywords. }#1}}
  67.  
  68. \def\address#1{\global\setbox\addressbox\hbox{\noindent{\bf Address. }#1}}
  69.  
  70. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  71. %   Sections and subsections
  72. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  73.  
  74. \def\SectionFont{\tenpoint\bf}
  75.  
  76. \def\section#1\par{\DoLeftSection{#1}}
  77.  
  78. \def\subsection#1\par{\BigBreak\noindent
  79.    {\it #1}
  80.    \nobreak\medskip\noindent}
  81.  
  82. \outer\def\proclaim #1. #2\par{\medbreak
  83.   \noindent{\bf#1.\enspace}{\sl#2}\par
  84.   \ifdim\lastskip<\medskipamount \removelastskip\penalty55\medskip\fi}
  85.  
  86.  
  87. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  88. %  References
  89. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  90.  
  91. \let\RefFont=\tenpoint
  92.  
  93. \def\endref{\SetRef\vskip.5pc}
  94.  
  95. \def\Refs{\vskip1in plus .5in minus .5in\goodbreak
  96.           \noindent{\hfill\tenpoint\bf References\hfill}
  97.           \vskip 2pc\RefFont}
  98.  
  99. \def\SetRef{
  100.  
  101.   \ifjour\jourfalse\vbox{\HangRef
  102.      \unhbox\bybox\space(\unhbox\yrbox) ``\unhbox\paperbox,'' 
  103.      \unhbox\jourbox, \unhbox\volbox,
  104.      \ifvoid\nobox\relax\else\unhbox\nobox, \fi
  105.      \unhbox\pagesbox. \par}\fi
  106.  
  107.  \ifbook\bookfalse\par\vbox{\HangRef
  108.      \unhbox\bybox\space (\unhbox\yrbox) 
  109.      {\it \unhbox\bookbox}. 
  110.      \unhbox\publaddrbox : 
  111.      \unhbox\publbox .\par}\fi
  112.  
  113.  \ifinbook\inbookfalse\par\vbox{\HangRef
  114.      \unhbox\bybox\space (\unhbox\yrbox) ``\unhbox\paperbox,'' in 
  115.      {\it \unhbox\bookbox}, ed. {\rm \unhbox\editorbox}.
  116.      \unhbox\publaddrbox : \unhbox\publbox \ifvoid\pagesbox\relax
  117.      \else, \unhbox\pagesbox\fi .\par}\fi
  118.  
  119.  \ifunpublished\unpublishedfalse\par\vbox{\HangRef
  120.      \unhbox\bybox\space(\unhbox\yrbox) 
  121.     ``\unhbox\paperbox,'' \unhbox\paperinfobox .\par}\fi
  122. }
  123.  
  124.  
  125. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  126. %   Define controls
  127. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  128.  
  129. \def\topmatter{\relax}
  130. \def\endtopmatter{\nopagenumbers\DoCover}
  131. \def\document{\DoPaper\noindent}
  132. \def\prelim{\global\PreliminaryVersiontrue}
  133.  
  134. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  135. %  Set the cover
  136. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  137.  
  138. \def\titlehead{\hfil}
  139. \def\titlefoot{\hfil}
  140.  
  141. \def\DoCover{\nopagenumbers
  142. \ifPreliminaryVersion\line{\hfil Preliminary Draft}\fi
  143. \vglue 2in plus 1in minus 1in
  144. \line{\hfil\box\covertitlebox\hfil}
  145. \vskip 1pc
  146. \line{\hfil\vbox{\halign{\tenrm\hfil##\hfil\cr by\crcr}}\hfil}
  147. \vskip 1pc
  148. \line{\hfil\box\coverauthorbox\hfil}
  149. \ifvoid\affilbox\relax\else
  150. \line{\hfil\box\affilbox\hfil}\fi
  151. \vskip 1pc
  152. \box\datebox
  153. \box\versionbox
  154. \vskip .5in%
  155. \noindent\unhbox\abstractbox\vskip 2pc
  156. \ifvoid\keywordsbox\relax\else\noindent\unhbox\keywordsbox\fi
  157. \vskip 2pc
  158. \ifvoid\addressbox\relax\else\noindent\unhbox\addressbox\fi
  159. \vfil\eject}
  160.  
  161. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  162. %  Set the paper
  163. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  164.  
  165.  
  166. \def\DoPaper{\Reset
  167.  \global\footline={\hfil\tenrm\number\pageno\hfil}
  168.  \vbox{\hfil\box\titlebox\hfil}
  169.  \vskip .5pc
  170.  \vbox{\hfil\box\authorbox\hfil}
  171.  \ifvoid\thanksbox\relax\else\vfootnote{}{
  172.     \eightpoint\ifdouble\vrule height 14pt width 0pt\fi\unhbox\thanksbox\endfnote}\fi
  173.  \vskip 2pc}
  174.  
  175. \parindent=15pt
  176.  
  177. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  178. %  Use a footnote rule in this style
  179. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  180.  
  181. \def\footnoterule{\kern-3pt\hrule width 2truein \kern 2.6pt}
  182.